#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int n = 0;
	int m = 0;
	int count1 = 0;
	int count2 = 0;
	int sum = 0;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
	{
		scanf("%d", &m);
		if (m < 0)
			count1++;
		else if (m > 0)
			sum += m;
		else
			count2++;
	}
	printf("%d %.1f", count1, sum * 1.0 / (n - count1 - count2));
	return 0;
}